import { BrowserWindow } from 'electron';
import create from './create-main-window';

export default function get() {
	const win = (global as any).main_win as BrowserWindow;
	if (!win) {
		return create();
	} else {
		return win;
	}
}
